php forum
php mysql forum
php mysql smarty
 
Page 13 of 13 < 1 2 ... 11 12 13
Topic Options
#201760 - 01/25/06 08:56 PM Re: [6.7] [beta] ubb.links v2.5
PTK Offline
Junior Member

Registered: 01/24/06
Posts: 12
Might there be a way to restrict adding links to admin only?

Or possibly restricting this to only select members?

Top
#201761 - 01/25/06 09:42 PM Re: [6.7] [beta] ubb.links v2.5
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
in links.cgi, find in sub ShowAdd:

Code:
	if ($username eq '') {
		&StandardHTML(qq!$vars_wordlets_err{not_logged_in}

 <a href="$ULTIMATEBB{"ubb=login"}">$vars_wordlets{login_now}</a>!);
	}
and change it to:

Code:
	&RequireUserLogin(1);
	@profile = &verify_id_num($username, $password, $user_number);
	unless ($profile[8] eq 'Administrator') { &StandardHTML2("$vars_wordlets_err{no_access}"); exit;}
_________________________
- Allen wavey
- What Drives You?

Top
#201762 - 01/25/06 10:25 PM Re: [6.7] [beta] ubb.links v2.5
PTK Offline
Junior Member

Registered: 01/24/06
Posts: 12
Excellent!
Thank you

Top
#201763 - 01/26/06 02:32 PM Re: [6.7] [beta] ubb.links v2.5
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
you're welcome smile
_________________________
- Allen wavey
- What Drives You?

Top
#201764 - 02/10/06 12:01 PM Re: [6.7] [beta] ubb.links v2.5
PTK Offline
Junior Member

Registered: 01/24/06
Posts: 12
Is this possible:

Restrict viewing of the links page to only members who have access to forum #2

i.e. $profile[4] would contain the number 2 but would also have other numbers.

Top
#201765 - 02/10/06 01:02 PM Re: [6.7] [beta] ubb.links v2.5
PTK Offline
Junior Member

Registered: 01/24/06
Posts: 12
Wow I think I figured it our myself LOL
I'm kind of starting to understand this stuff.
Does this sound correct

In links.cgi I found:
Code:
if (@ubber) {
	@checkTheProfile = &verify_id_num_2($username, $password, $user_number);
	unless ($checkTheProfile[4] =~ /Write/) {
		print header(
			-charset => "$masterCharset",
			-type    => "text/html",
		);
		&StandardHTML($vars_wordlets_err{user_not_approved});  
And changed to:
Code:
if (@ubber) {
	@checkTheProfile = &verify_id_num_2($username, $password, $user_number);
	unless ($checkTheProfile[4] =~ /2/) {
		print header(
			-charset => "$masterCharset",
			-type    => "text/html",
		);
		&StandardHTML($vars_wordlets_err{user_not_approved});  

Top
#201766 - 02/11/06 11:26 AM Re: [6.7] [beta] ubb.links v2.5
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
it looks right, did it work? smile
_________________________
- Allen wavey
- What Drives You?

Top
#201767 - 02/17/06 08:33 AM Re: [6.7] [beta] ubb.links v2.5
PTK Offline
Junior Member

Registered: 01/24/06
Posts: 12
Yeap It seems to be working great

Top
Page 13 of 13 < 1 2 ... 11 12 13



Moderator:  Charles, Gizmo 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks